package com.googlecode.c4e.ui.views.internal;

import java.util.Comparator;

public class ElementComparator implements Comparator<String> {

	private static final String PENDING = "Pending...";

	public int compare(String s1, String s2) {
		if (PENDING.equals(s1)) {
			return -1;
		}
		if (PENDING.equals(s2)) {
			return 1;
		}
		return s1.compareTo(s2);
	}
}
